<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="赵鹤阳">
    <title>img</title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
        }

        ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .container {
            width: 1200px;
            margin: 0 auto;
        }

        li a {
            color: #989898;
            text-decoration: none;
        }

        li a:hover {
            color: #10c88c;
        }

        header {
            width: 100%;
            height: 50px;
            background-color: #10c56c;
        }

        .con {
            width: 1200px;
            height: 50px;
            margin: 0 auto;
        }

        .header-list li {
            width: 80px;
            height: 50px;
            float: left;
            margin-left: 15px;

            line-height: 50px;
        }

        .header-list li a {
            color: #ddd;
            margin-left: 10px;
            text-align: center;
        }

        .active {
            background-color: rgba(0, 0, 0, 0.3);
        }

        .last-list a {

            /* margin-left: 40px; */
        }

        .cen-list {
            float: right;
        }

        .cen-list li {
            float: left;
            margin-left: 35px;
        }

        .cen-list li a {
            color: #ddd;
            line-height: 50px;
        }

        .biao {
            width: 100%;
            height: 100px;
            margin-top: 20px;
        }

        .photo {
            width: 180px;
            height: 80px;
            text-align: center;
        }

        .photo span a {
            font-size: 45px;
            color: #10c56c;
            text-decoration: none;
        }

        .photo p {
            font-size: 14px;
            color: #888;
            margin-top: -2px;
        }

        .btn {
            margin: 0;
            width: 698px;
            height: 62px;
            margin-left: 250px;
            margin-top: -80px;
            border-radius: 10px;
            border: 1px solid #989898;
        }

        .quan {
            margin: 0;
            width: 80px;
            height: 40px;
            border-right: 1px solid #888;
            text-align: center;
            line-height: 40px;
            margin-top: 10px;
        }

        .input {
            margin: 0;
            margin-left: 90px;
            margin-top: -75px;
        }

        .input input {
            width: 500px;
            height: 55px;
            margin-top: 30px;
            outline: none;
            border: none;
        }

        .input div {
            /* position: absolute; */
            width: 97px;
            height: 60px;
            margin-left: 510px;
            margin-top: -60px;
            border: none;
            border-bottom-right-radius: 10px;
            border-top-right-radius: 10px;
            background-color: #10c56c;
        }

        .input span {
            font-size: 10px;
            margin-left: -60px;
        }

        .tixing li {
            float: left;
            margin-top: -20px;
        }

        .tixing li a {
            font-size: 10px;
            margin-left: 10px;
            line-height: 20px;
        }

        .box {
            width: 100%;
            height: 320px;
            margin-top: 150px;
            position: relative;
        }

        .tu {
            width: 100%;
        }

        .tu li {
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            display: none;
        }

        .tu li a {
            display: inline-block;
            width: 1200px;
            margin-left: 350px;
        }

        .tu li.current {
            display: block;
        }

        .indicator {
            width: 100%;
            position: absolute;
            left: 0;
            bottom: 0px;
            display: flex;
            justify-content: center;
        }

        .indicator li {
            width: 15px;
            height: 15px;
            background-color: #999;
            border-radius: 50%;
            text-align: center;
            line-height: 20px;
            margin-left: 5px;
            cursor: pointer;
            transition: all 0.3s linear;
        }

        .indicator li.tive {
            background-color: #10c88c;
        }

        .top {
            width: 1200px;
            height: 50px;
            margin-top: 50px;
        }

        .top span {
            font-size: 30px;
        }

        .top-1 {
            margin-left: 150px;
            margin-top: -30px;
        }

        .top-1 li:nth-child(1) {
            float: left;
        }

        .top-1 li:nth-child(2) {
            float: right;
        }

        .conner-tu li {
            display: block;
            width: 295px;
            height: 210px;
            position: relative;
            float: left;
            margin-left: 4px;
            margin-top: 20px;
        }

        .poster span {
            font-size: 30px;
        }

        .poster-wen {
            margin-left: 140px;
            margin-top: -30px;
        }

        .poster-tu {
            margin-top: -30px;
        }

        .poster li {
            float: left;
            margin-left: 20px;
        }

        .poster li:nth-child(6) {
            float: right;
        }

        .icon {
            margin-top: 50px;
        }

        .icon li {
            display: block;
            width: 295px;
            height: 420px;
            position: relative;
            float: left;
            margin-left: 4px;
        }

        .icon li a {
            color: #999;
            font-size: 14px;
        }

        footer {
            width: 100%;
            height: 370px;
            position: absolute;
            bottom: -1800px;
            background-color: #ddd;
        }

        .bot ul {
            margin-top: 30px;
            float: left;
            margin-left: 50px;
        }

        .bot li {
            margin-top: 10px;
            font-size: 13px;
        }

        .bot .xi {
            float: right;
        }

        .xi li {
            margin-top: 15px;
        }

        .xi span {
            font-size: 20px;
        }

        .xi button {
            width: 80px;
            height: 30px;
            background-color: #10c56c;
            border: none;
            border-radius: 10px;
        }

        .bottom {
            width: 1200px;
            height: 60px;
            margin: 0 auto;
            border-top: 1px solid #888;
            margin-top: 300px;
        }

        .bom {
            margin-top: 10px;
        }

        .bom li {
            float: left;
            margin-left: 50px;
            font-size: 10px;
        }

         .bom li a {
              margin-left: 1px;  
         }  

        .bom li:nth-child(6) {
            float: right;
        }

        .img-click span {
            width: 50px;
            height: 100px;
            line-height: 100px;
            text-align: center;
            color: #3388ff;
            background-color: rgba(0, 0, 0, 0.1);
            position: absolute;
            top: calc(50% - 40px);
        }

        .img-click span:hover {
            background-color: #888;
            cursor: pointer;
        }

        .img-click .prev {
            left: 0;
        }

        .img-click .next {
            right: 0;
        }

        .sty {
            color: #10c88c;
        }


        .conner-tu .over {
            width: 290px;
            height: 200px;
            position: absolute;
            background-color: rgba(0, 0, 0, 0.5);
            top: 0;
            left: 0;
            display: none;
        }

        .conner-tu .over section {
            width: 150px;
            height: 100px;
            margin: 60px 70px;
            text-align: center;
            line-height: 50px;
            font-size: 20px;
            color: #ddd;
            border-bottom: 3px solid #fff;
            border-top: 3px solid #fff;
        }

        .icon .yes {
            width: 290px;
            height: 385px;
            position: absolute;
            background-color: rgba(0, 0, 0, 0.5);
            top: 0;
            left: 0;
            display: none;
        }

        .icon .yes section {
            width: 150px;
            height: 100px;
            margin: 110px 70px;
            text-align: center;
            line-height: 50px;
            font-size: 20px;
            color: #ddd;
            border-bottom: 3px solid #fff;
            border-top: 3px solid #fff;
        }

        .icons-r1c1 {
            display: inline-block;
            background-image: url(img/common.png);
            background-position: -123px -380px;
            position: absolute;
            width: 30px;
            height: 30px;
            right: 590px;
            top: 12px;
        }

        .icons-r1c2 {
            display: inline-block;
            background-image: url(img/common.png);
            background-position: -60px -440px;
            position: absolute;
            width: 30px;
            height: 30px;
            right: 640px;
            top: 85px;
        }

        .icons-r1c3 {
            display: inline-block;
            background-image: url(img/common.png);
            background-position: -62px -200px;
            position: absolute;
            width: 30px;
            height: 30px;
            /* background-color:black;     */
            left: 370px;
            bottom: 35px;
        }

        .icons-r1c4 {
            display: inline-block;
            background-image: url(img/common.png);
            background-position: -35px -200px;
            position: absolute;
            width: 30px;
            height: 30px;
            /* background-color:black;      */
            left: 420px;
            bottom: 35px;
        }
    </style>
</head>

<body>
    <header>
        <div class="con">
            <ul class="header-list">
                <li><a class="active" href="#" style="color:#000; width:100%;height:100%; display:inline-block;">首页</a></li>
                <li><a href="#">所有分类</a></li>
                <li><a href="#">设计创意</a></li>
                <li><a href="#">办公创意</a></li>
                <li class="last-list"><a href="#" style="font-size: 35px;
            line-height: 15px;margin-left:25px;">...</a></li>
            </ul>
            <ul class="cen-list">

                <li><a href="#">VIP中心<span class="icons-r1c1"></span></a></li>
                <li><a href="#">请登录</a></li>
                <li><a href="#">免费注册</a></li>

            </ul>
        </div>
        <div class="container">
            <div class="biao">
                <div class="photo">
                    <span> <a href="#">全图网 <p>轻松设计 高效办公</p> </a></span>
                </div>
                <div class="btn">
                    <div class="quan">全站</div>
                    <div class="input"><input type="text" placeholder="800万免费设计素材任意下载">
                        <div> <a href="#"> <span class="icons-r1c2"></span></a> </div>

                        <span>热门搜索:</span>
                        <ul class="tixing">
                            <li><a class="sty" href="#">七夕</a></li>
                            <li><a href="#">详情页</a></li>
                            <li><a class="sty" href="#">icon</a></li>
                            <li><a href="#">主图</a></li>
                            <li><a class="sty" href="#">秋季</a></li>
                            <li><a class="sty" href="#">PPT模板</a></li>
                            <li><a href="#">EXCEL模板</a></li>
                            <li><a href="#">首页</a></li>
                            <li><a href="#">个人简历</a></li>
                            <li><a class="sty" href="#">装饰画</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

    </header>
    <nav>
        <div class="box">
            <ul class="tu">
                <li style="background-color:#090909;" class="current"><a href="#"><img src="img/banner01.jpg" alt=""></a></li>
                <li style="background-color:#ffff0f;"><a href="#"><img src="img/banner02.jpg" alt=""></a></li>
                <li style="background-color:#fdf100;"><a href="#"><img src="img/banner03.jpg" alt=""></a></li>
                <li style="background-color:#2d9aff;"><a href="#"><img src="img/banner04.jpg" alt=""></a></li>
                <li style="background-color:#89dce3;"><a href="#"><img src="img/banner05.jpg" alt=""></a></li>
                <li style="background-color:#fcf8c4;"><a href="#"><img src="img/banner06.jpg" alt=""></a></li>
                <li style="background-color:#000;"><a href="#"><img src="img/banner07.jpg" alt=""></a></li>
                <li style="background-color:#f4cad8;"><a href="#"><img src="img/banner08.jpg" alt=""></a></li>
            </ul>
            <ul class="indicator">
                <li class="tive"></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
            </ul>
            <div class="img-click">
                <span class="prev">&lt;</span>
                <span class="next">&gt;</span>
            </div>
        </div>
        <div class="container">
            <div class="top">
                <span>精选专题</span>
                <ul class="top-1">
                    <li><a href="#">100万党建素材、PPT汇报模板无限下载，每天仅需0.18元立享VIP特权</a></li>
                    <li><a href="#">更多>></a></li>
                </ul>
            </div>
            <div class="conner">
                <ul class="conner-tu">
                    <li><a href="#"><img src="img/jxzt01.jpg" alt=""></a>
                        <div class="over">
                            <section>
                                <span>
                                    出淤泥而不染 <br> 濯清涟而不妖
                                </span>
                            </section>
                        </div>
                    </li>
                    <li><a href="#"><img src="img/jxzt02.jpg" alt=""></a>
                        <div class="over">
                            <section>
                                <span>
                                   爱的元素<br>让爱在土里发芽
                                </span>
                            </section>
                        </div>
                    </li>
                    <li><a href="#"><img src="img/jxzt03.jpg" alt=""></a>
                        <div class="over">
                            <section>
                                <span>
                                     鲜花背景<br>为你的锦上添花
                                </span>
                            </section>
                        </div>
                    </li>
                    <li><a href="#"><img src="img/jxzt04.jpg" alt=""></a>
                        <div class="over">
                            <section>
                                <span>
                                   枫叶元素<br>一叶而知秋
                                </span>
                            </section>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="poster">
                <span>商用海报</span>
                <ul class="poster-wen">
                    <li><a href="#">招聘海报</a></li>
                    <li><a href="#">配图海报</a></li>
                    <li><a href="#">企业文化</a></li>
                    <li><a href="#">促销海报</a></li>
                    <li><a href="#">原创插画</a></li>
                    <li><a href="#">更多 >></a></li>
                </ul>
            </div>
            <div class="poster-tu">
                <ul class="icon">
                    <li><a href="#"><img src="img/syhb01.jpg" alt="">七夕特别活动等你砰然心动</a>
                        <div class="yes">
                            <section>
                                <span>
                                   枫叶元素<br>一叶而知秋
                                </span>
                            </section>
                        </div>
                    </li>
                    <li><a href="#"><img src="img/syhb02.jpg" alt="">lolS7总决赛等你来战</a>
                        <div class="yes">
                            <section>
                                <span>
                                   枫叶元素<br>一叶而知秋
                                </span>
                            </section>
                        </div>
                    </li>
                    <li><a href="#"><img src="img/syhb03.jpg" alt="">白露已到天气转凉注意身体</a>
                        <div class="yes">
                            <section>
                                <span>
                                   枫叶元素<br>一叶而知秋
                                </span>
                            </section>
                        </div>
                    </li>
                    <li><a href="#"><img src="img/syhb04.jpg" alt="">迎风破浪，随你远航</a>
                        <div class="yes">
                            <section>
                                <span>
                                   枫叶元素<br>一叶而知秋
                                </span>
                            </section>
                        </div>
                    </li>

                </ul>
            </div>
        </div>
    </nav>
    <footer>
        <div class="container">
            <div class="bot">
                <ul class="wenti">
                    <span>常见问题</span>
                    <li><a href="#">成为特邀设计师</a></li>
                    <li><a href="#">成为原创贡献者</a></li>
                    <li><a href="#">注册登录</a></li>
                    <li><a href="#">账号/密码</a></li>
                    <li><a href="#">充值/售后</a></li>
                    <li><a href="#">版权投诉</a></li>
                </ul>
                <ul class="about">
                    <span>关于img</span>
                    <li><a href="#">关于我们</a></li>
                    <li><a href="#">媒体报道</a></li>
                    <li><a href="#">加入我们</a></li>
                    <li><a href="#">心系千图</a></li>
                    <li><a href="#">每日最新</a></li>
                </ul>
                <ul class="werti">
                    <span>产品服务</span>
                    <li><a href="#">官方微博</a></li>
                    <li><a href="#">帮助中心</a></li>
                    <li><a href="#">千图导航</a></li>
                </ul>
                <ul class="lian">
                    <span>友情链接</span>
                    <li><a href="#">我图网</a></li>
                    <li><a href="#">千库网</a></li>
                    <li><a href="#">摄图网</a></li>
                    <li><a href="#">包图网</a></li>
                    <li><a href="#">视达网</a></li>
                    <li><a href="#">更多>></a></li>
                </ul>
                <ul class="xi">
                    <span>客服咨询</span>
                    <li> 400-998-7011 （9:00-18:00）</li>
                    <li>feedback@58pic.com</li>
                    <li><button type="button">点我交谈</button></li>
                </ul>
            </div>
        </div>
        <div class="bottom">
            <ul class="bom">
                <li> <a href="#"> <span class="icons-r1c3"></a></li>
                <li> <a href="#"> <span class="icons-r1c4"></a></li>
                <li><a href="#">注册声明</a></li>
                <li><a href="#">版权声明</a></li>
                <li><a href="#">售后服务</a></li>
                <li><a href="#">Copyright ©2013-2017 img 沪ICP备10011451号-6上海工商 安全实名验证 信用网站</a></li>
            </ul>
        </div>
    </footer>
</body>

</html>
<script>
    window.onload = function () {
        var over = document.querySelectorAll('.over')
        var yes = document.querySelectorAll('.yes');
        var hy = document.querySelectorAll('.icon li')
        var by = document.querySelectorAll('.conner-tu li')
        var box = document.querySelector('.box');
        var imglis = document.querySelectorAll('.tu li');
        var indicatorlis = document.querySelectorAll('.indicator li');
        var prev = document.querySelector('.prev');
        var next = document.querySelector('.next');
        var change = document.querySelectorAll('.tixing li a')
        var Lis = document.querySelectorAll('.con li')
        for (var i = 0; i < Lis.length; i++) {
            Lis[i].index = i;
            Lis[i].onmouseover = function () {
                for (var i = 0; i < Lis.length; i++) {

                    Lis[this.index].className = '';
                }
                if (this.index <= 5) {
                    Lis[this.index].className = 'active';
                }

            }
            Lis[i].onmouseout = function () {
                Lis[this.index].className = '';
            }
        }

        for (var i = 0; i < hy.length; i++) {
            hy[i].index = i;
            hy[i].onmouseover = function () {
                console.log(this.index);
                yes[this.index].style.display = 'block';
            }
            hy[i].onmouseout = function () {
                yes[this.index].style.display = 'none';
            }
        }
        for (var j = 0; j < by.length; j++) {
            by[j].index = j;
            by[j].onmouseover = function () {
                console.log(this.index);
                over[this.index].style.display = 'block';
            }
            by[j].onmouseout = function () {
                over[this.index].style.display = 'none';
            }
        }
        for (var i = 0; i < change.length; i++) {
            change[i].index = i;
            change[i].onmouseover = function () {
                change[this.index].style.color = '#10c88c';
            }
            change[i].onmouseout = function () {
                change[this.index].style.cssText = '';
            }
        }
        var index = 0;
        function prevImg() {
            index = index == 0 ? imglis.length - 1 : index - 1;
            showImg();
        }
        function nextImg() {
            index = index == imglis.length - 1 ? 0 : index + 1;
            showImg();
        }
        function showImg() {
            for (var i = 0; i < imglis.length; i++) {
                imglis[i].className = '';
                indicatorlis[i].className = '';
            }
            imglis[index].className = 'current';
            indicatorlis[index].className = 'tive';
        }
        var timer = setInterval(nextImg, 1000);

        for (var i = 0; i < indicatorlis.length; i++) {
            indicatorlis[i].index = i;
            indicatorlis[i].onclick = function () {
                clearInterval(timer);
                index = this.index;
                showImg();
            }
            indicatorlis[i].onmspointerout = function () {
                if (timer != null) {
                    return;
                }
                timer = setInterval(nextImg, 1000);
            }
        }
        box.onmouseover = function () {
            clearInterval(timer);
            timer = null;
            prev.style.display = 'block';
            next.style.display = 'block';
        }
        box.onmouseout = function () {
            if (timer) return;
            prev.style.display = 'none';
            next.style.display = 'none';
        }
        prev.onclick = function () {
            prevImg();
        }
        next.onclick = function () {
            nextImg();
        }
    }

</script>